 <!--{include wap_header}-->
<script src="/static/js/index.js" type="text/javascript"></script>
 <body >
 <header class=" ">
               
                <h1>手机注册 •  <a href="javascript:history.back()"><label gaevent="InnerLink|Click|touch/back">返回</label></a></h1>
            </header>
<ul class="login-tabs"><li><a href="signup.php" title="">邮箱注册</a></li>
		<li class="active"><a href="signmb.php" title="">手机号注册</a></li>
			<li ><a href="/wapqq/example/oauth/index.php" title="">QQ直连</a></li>
	</ul>
           

              
                <div class="sect">
                    <form id="signup-user-form" method="post" action="signmb.php" class="validator">
                      <!--<div class="field email">
                          
                          <input type="text" size="30" name="email" id="signup-email-address" class="common-text" value="{$_POST['email']}" require="true" datatype="email|ajax" url="${WEB_ROOT}/ajax/validator.php" vname="signupemail" msg="Email格式不正确|Email已经被注册" placeholder="输入您邮箱，推荐QQ邮箱。"/> 
                      </div>
                        <div class="field username">
                  
                             <input type="text" size="30" name="username" id="signup-username" class="common-text" value="{$_POST['username']}" datatype="limit|ajax" require="true" min="2" max="16" maxLength="16" url="${WEB_ROOT}/ajax/validator.php" vname="signupname" msg="用户名长度受限|用户名已经被使用" placeholder="输入用户名"/>
                      </div>
                        <div class="field password">
                         
                            <input type="password" size="30" name="password" id="signup-password" class="common-text" require="true" datatype="require"placeholder="输入您的密码"/>
                        </div>
                        <div class="field password">
                         
                            <input type="password" size="30" name="password2" id="signup-password-confirm" class="common-text" require="true" datatype="compare" compare="signup-password" placeholder="再次确认密码"/>
                        </div>-->
						<!--{if ($INI['sms']['reg']=='1')}-->
					  <div class="field">
						
							<input type="text" size="30" name="mobile" id="signup-mobile" class="common-text" require="true" datatype="mobile" placeholder="请输入您的手机号"/>
						</div>
					  <div class="field">
				
						  <div align="center"><a href="javascript:;" onClick="getverifycode1();"><font color="red"><b style="font-size:24px;">获取验证码</b></font></a>
							  <input type="text" size="30" name="verifycode" id="signup-verifycode" class="common-text" require="true" datatype="require" maxLength="6" value="{$_POST['verifycode']}" placeholder="输入获取的验证码"/>
						 </div>
						</div>
						<script type="text/javascript">
						function getverifycode1() {
							var mobile = trim(jQuery('#signup-mobile').val());
							if(mobile == '') {
								alert('手机号不能为空');
								jQuery('#signup-mobile').focus();
							} else {
								X.get(WEB_ROOT + '/ajax/sms.php?action=getverifycode1&mobile='+mobile+'&r='+ Math.random());
							}
						}

						function trim(str) {
							return str.replace(/^\s*(.*?)[\s\n]*$/g, '$1');
						}
						</script>
						<!--{else}-->
                      <div class="field">
						
							<input type="text" size="30" name="mobile" id="signup-mobile" class="common-text" require="true" datatype="mobile" placeholder="请输入您的手机号"/>
						</div>
					  <div class="field">
				
						  <div align="center"><a href="javascript:;" onClick="getverifycode1();"><font color="red"><b style="font-size:24px;">获取验证码</b></font></a>
							  <input type="text" size="30" name="verifycode" id="signup-verifycode" class="common-text" require="true" datatype="require" maxLength="6" value="{$_POST['verifycode']}" placeholder="输入获取的验证码"/>
						 </div>
						</div>
						<script type="text/javascript">
						function getverifycode1() {
							var mobile = trim(jQuery('#signup-mobile').val());
							if(mobile == '') {
								alert('手机号不能为空');
								jQuery('#signup-mobile').focus();
							} else {
								X.get(WEB_ROOT + '/ajax/sms.php?action=getverifycode1&mobile='+mobile+'&r='+ Math.random());
							}
						}

						function trim(str) {
							return str.replace(/^\s*(.*?)[\s\n]*$/g, '$1');
						}
						</script>
						<!--{/if}-->
						<!--{if option_yes('verifyregister')}-->
							<!--{include block_block_captcha}-->
						<!--{/if}-->
						<div class="field city" style="display:none;">
                            <label id="enter-address-city-label" for="signup-city">所在城市</label>
							<select name="city_id" class="f-city">${Utility::Option(Utility::OptionArray($allcities,'id','name'), $city['id'])}<option value='0'>其他</option></select>
                        </div>
				
                
                         <p class="c-submit ">
							<input  type="submit" value="同意并注册" name="commit" id="signup-submit" /></p>
                  

                    </form>
                </div>
            </div>
    
  
    </div>
<!--{include wap_footer}-->
